package com.ainiyar.springweb.pojo.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**************************************
 * File Name : Role
 * Created with : IntelliJ IDEA.
 * Author : 艾尼亚尔·毛拉吾提
 * QQ : 524155792  WeChat : ainiyar0124
 * Created Time : 2024/2/5  00:58
 * Desc :角色管理实体类
 ***************************************/
@Data
@Table("sw_role")
public class Role {
    @Id(keyType = KeyType.Auto)
    private Long id;
    private String name;
    private String roleDescribe;
    private Integer status=1; //角色状态(1:启用,0:停用)
    @Column(onInsertValue = "NOW()")
    private LocalDateTime createTime;
    @Column(onUpdateValue = "NOW()")
    private LocalDateTime updateTime;
    @Column(ignore = true)
    private List<Long> permissionList;
}

